package com.springcloud.alibaba.fegin.consumer.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:RenPu
 * @Date: 2020/6/30 16:20
 * @Version: 1.0
 * @description:
 */

@Component
@FeignClient(value = "consul-payment-server",fallback = ProviderServiceImpl.class)
public interface ProviderServer {


    @GetMapping(value = "/payment/hystrix/{id}")
    public String testHystrixJiangJi(@PathVariable(value = "id") Integer id);



    @GetMapping(value = "/payment/hystrixF/{id}")
    public String testHystrixDuan(@PathVariable(value = "id") Integer id);

}
